package com.smartpro.mis.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 常量表
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
@TableName("constants")
public class Constants extends Model<Constants> {

    private static final long serialVersionUID = 1L;

    /**
     * 常量id
     */
    @TableId(value = "constID", type = IdType.AUTO)
    private Integer constID;
    /**
     * 常量类别
     */
    private Integer constType;
    /**
     * 常量名
     */
    private String constName;
    /**
     * 常量值
     */
    private String constValue;


    public Integer getConstID() {
        return constID;
    }

    public void setConstID(Integer constID) {
        this.constID = constID;
    }

    public Integer getConstType() {
        return constType;
    }

    public void setConstType(Integer constType) {
        this.constType = constType;
    }

    public String getConstName() {
        return constName;
    }

    public void setConstName(String constName) {
        this.constName = constName;
    }

    public String getConstValue() {
        return constValue;
    }

    public void setConstValue(String constValue) {
        this.constValue = constValue;
    }

    @Override
    protected Serializable pkVal() {
        return this.constID;
    }

    @Override
    public String toString() {
        return "Constants{" +
        "constID=" + constID +
        ", constType=" + constType +
        ", constName=" + constName +
        ", constValue=" + constValue +
        "}";
    }
}
